Micron Document
Deavmi's coding shack

Commit 5184dd57ff5d12e6bd7b7e5933affa093ed61da8


Parents : 14fd757
Author : Tristan B. Kildaire <deavmi@redxen.eu>
Date : 2021-11-01T19:31:28+02:00

Added documentation on the Statement class

Changes

1 files changed, 24 insertions(+), 1 deletions(-)


Diff

diff --git a/new_docs/content/documentation/internals/parsing/structures.md b/new_docs/content/documentation/internals/parsing/structures.md
index f074cbd..7ce03bc 100644
--- a/new_docs/content/documentation/internals/parsing/structures.md
+++ b/new_docs/content/documentation/internals/parsing/structures.md
@@ -15,4 +15,27 @@ The type declared as `Program` is a class that has the following main components
1. `Statement[] statements`
* An array containining, in the order of parsing (of the source code), each and every statement at the program-level
-2. TODO: Nothing else to be honest
\ No newline at end of file
+2. TODO: Nothing else to be honest
+
+---
+
+## The _Statement_
+
+This is the holy grail of everything the parser generates. This is the top-level general representation-base of all structures. This means that this class represents the attributes that all structures that are sub-types of it (as you will see) will have. All parser methods produce some sub-type of the `Statement` type and return it for addition into either another _kinf-of_ statement or for immediate addition to the `Program`'s `statements` array.
+
+Being a general top-type there isn't much it has but it has a few things all _types of statements_ will require:
+
+1. `weight`
+ * These are simply integers which are for the topic of discussion of [weighting](../weigthing)
+ * Some statements share the same weight, some don't
+2. `context`
+ * This is used at a stage other than parsing and is not for discussion here, see [context](../typechecking/context)
+3. `container`
+ * This is where the _structures of structures_ aspect comes in. This allows us to set the _container-like_ strcuture
+ to of which we are a parent of
+ * This is **returned** by `parentOf()` (type `Container`)
+ * This is **set** by `parentTo(Container)`
+
+---
+
+TODO: Add now Entity, etc, VarAsign, VArAsignSTdALone etc
\ No newline at end of file

Served by rngit 1.5.0 - Generated in 0.16s